package com.tuananh.radnom.model.netpoller;

import java.io.Serializable;
import java.util.HashMap;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

import com.tuananh.radnom.model.netservice.MyMapTypeAdapter;

@XmlRootElement(name = "netpoller")
public class NetPollerConcrete implements Serializable {
	protected long timeout;

	@XmlAttribute
	public long getTimeout() {
		return timeout;
	}

	public void setTimeout(long timeout) {
		this.timeout = timeout;
	}

	protected String netService;

	@XmlAttribute
	public String getNetService() {
		return netService;
	}

	public void setNetService(String netService) {
		this.netService = netService;
	}

	protected String name;

	protected HashMap<String, String> params;

	@XmlJavaTypeAdapter(MyMapTypeAdapter.class)
	public HashMap<String, String> getParams() {
		return params;
	}

	public void setParams(HashMap<String, String> params) {
		this.params = params;

	}

	@XmlAttribute
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	};

}
